package com.zhss.service;

import org.springframework.web.bind.annotation.*;

@RestController
//@Configuration
public class ServiceAController {

    @RequestMapping(value = "/sayHello/{name}",method = RequestMethod.GET)
    public String sayHello(@PathVariable("name") String name) {
        System.out.println("打招呼, name=" + name);
        return "{'msg': 'hello, " + name + "'}";
    }

}
